package day09.KeJian;

public class GenericDemo1 {
    public static void main(String[] args) {
        Generic<String> g1 = new Generic<>();
        g1.setT("大幂幂");
        System.out.println(g1);

        Generic<Integer> g2 = new Generic<>();
        g2.setT(30);
        System.out.println(g2);

        Generic<Boolean> g3 = new Generic<>();
        g3.setT(true);
        System.out.println(g3);
    }
}
